/**
 * $File: TT_Graphics_Camera.cpp
 * $Synopsis: Graphics Stuff Implementation
 * $Author: Ted Yin (ymfoi)
 * $Version: alpha 1.0
 * $Date: Sat Nov 27 22:47:17 2010 CST
 */
#include "TT_Graphics_Camera.h"

namespace TT_Graphics {

	void Camera_Playing(TT_Core::Pos P1,int P1_Cx,int P1_Cy,int P1_Cz,float Deg) {

		glMatrixMode(GL_MODELVIEW);
		glLoadIdentity();

		gluLookAt(P1_Cx,P1_Cy,P1_Cz,
				0,P1_Cy + 250,0,
				0,0,1);
		glRotatef(-Deg + 100,0,0,1);
		glTranslatef(-P1.x * FACTOR,-P1.y * FACTOR,0);
	}

}
